package com._54programer.aop.config;

import com._54programer.aop.aspect.Logger;
import com._54programer.aop.bean.Math;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

//开启Aop
@EnableAspectJAutoProxy
@Configuration
public class AopConfig1 {

    @Bean
    public Math math(){
        return new Math();
    }

    @Bean
    public Logger logger(){
        return new Logger();
    }

}
